package com.zgh.listener;//package com.zgh.listener;
//
//import javax.servlet.http.HttpSessionAttributeListener;
//import javax.servlet.http.HttpSessionBindingEvent;
//import javax.servlet.http.HttpSessionEvent;
//import javax.servlet.http.HttpSessionListener;
//
//import org.springframework.web.context.WebApplicationContext;
//import org.springframework.web.context.support.WebApplicationContextUtils;
//
//import com.zgh.power.service.IEditLockService;
//
//public class SessionListener implements HttpSessionAttributeListener,HttpSessionListener {
//
//
//	@Override
//	public void attributeAdded(HttpSessionBindingEvent arg0) {
//
//	}
//
//	@Override
//	public void attributeRemoved(HttpSessionBindingEvent arg0) {
//
//	}
//
//	@Override
//	public void attributeReplaced(HttpSessionBindingEvent arg0) {
//
//
//	}
//
//	@Override
//	public void sessionCreated(HttpSessionEvent arg0) {
//
//
//	}
//
//	@Override
//	public void sessionDestroyed(HttpSessionEvent arg0) {
//		WebApplicationContext wac=WebApplicationContextUtils.getWebApplicationContext(arg0.getSession().getServletContext());
//		IEditLockService editLockService=(IEditLockService)wac.getBean("editLockService");
//		try{editLockService.logoutUnlock(arg0.getSession().getId());  }catch(Exception ex){}
//	}
//
//
//
//}
